/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.wii.elpro.dao;

import com.wii.elpro.entity.Cabang;
import com.wii.elpro.entity.Departemen;
import com.wii.elpro.entity.User;
import java.util.List;

/**
 *
 * @author hendro
 */
public interface UserDAOInterface extends DAOGeneric{   
    public User getUser(long id)throws Exception;
    public List<User> getUsers()throws Exception;
    public List<User> getUsersByDepartemen(Departemen dep)throws Exception;
    public List<User> getUsersByCabang(Cabang cab)throws Exception;
    public List<User> getUserByDepartmenAndCabang(Departemen dep,Cabang cab)throws Exception;
    public boolean usernameIsUsed(String username)throws Exception;
    public User login(String username, String password)throws Exception;
}
